﻿<%@ Page Title="" Language="C#" MasterPageFile="~/PortalParts/PageMoreBranch.Master" AutoEventWireup="true" CodeBehind="PhotoWallMorePage.aspx.cs" Inherits="ZHDJ.Web.Portal.PhotoWall.PhotoWallMorePage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <link href="../../Resource/themes/default/css/party.portal.css" rel="stylesheet" />
    <script src="../../Resource/js/jquery/jquery.pagination.js"></script>
    <script type="text/javascript">
        var pageSize = 16;
        $(function () {
            var totalCount = $("#ctl00_ContentPlaceHolder1_hfTotalCount").val();
            $("#pagination").pagination(totalCount, {
                num_edge_entries: 1, //边缘页数
                num_display_entries: 4, //主体页数
                callback: pageselectCallback,
                items_per_page: pageSize, //每页显示1项
                prev_text: " ",
                next_text: " "
            });

            function pageselectCallback(pageIndex, jq) {
                $.get("PhotoWallMorePage.aspx", {
                    pageIndex: pageIndex,
                    pageSize: pageSize,
                    branchID:querystring("branchID"),
                    module: querystring("module"),
                    category: querystring("category"),
                    r: (new Date()).getTime()
                },
                function (data) {
                    $(".widgets-content-image-list > li").remove();
                    if (data == null || data == "") {
                        data = "<li><center>此栏目暂无信息</center></li>";
                    }
                    var $content = $(data);
                    $(".widgets-content-image-list").append($content);
                }, 'text');
                return false;
            }
        });

        function querystring(key) {
            var re = new RegExp('(?:\\?|&)' + key + '=(.*?)(?=&|$)', 'gi');
            var r = [], m;
            while ((m = re.exec(document.location.search)) != null) r.push(m[1]);
            return r.toString();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    <asp:HiddenField ID="hfTotalCount" runat="server" Value="10" />
    <asp:HiddenField ID="hfModule" runat="server" />
    <div>
        <ul class="widgets-content-image-list"></ul>
    </div>
    <div style="clear: both; font-size: 0px; height: 0px;"></div>
    <div class="pagination">
        <div id="pagination"></div>
    </div>
</asp:Content>
